using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.IO;
using QlyKinhDoanh.Utility;

namespace prjQlyKinhDoanh
{
    public partial class frmThoiHoatDongViewer : Form
    {
        string _sTuNgay, _sDenNgay;

        public frmThoiHoatDongViewer()
        {
            InitializeComponent();
        }

        public frmThoiHoatDongViewer(string strTuNgay, string strDenNgay)
        {
            InitializeComponent();
            _sTuNgay = strTuNgay;
            _sDenNgay = strDenNgay;
        }

        private void frmThoiHoatDongViewer_Load(object sender, EventArgs e)
        {
            string[] paraName = new string[3];
            paraName[0] = "@iStatus";
            paraName[1] = "@sThoiTuNgay";
            paraName[2] = "@sThoiDenNgay";

            string[] paraValue = new string[3];
            paraValue[0] = "4";
            paraValue[1] = _sTuNgay;
            paraValue[2] = _sDenNgay;
            string sReportFile = Declare.ReportPath + "rptCoSoThoiHoatDong.rpt";
            ReportUtility.LoadReportFile(sReportFile, crystalReportViewer1, paraName, paraValue);
        }
    }
}